﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using laba2.Entity;
using laba2.Repository.IRepository;

namespace laba2.Repository.RepositoryImpl
{
    public class StudentRepository : Repository<Student>, IStudentRepository
    {
        public StudentRepository(List<Student> list) : base(list)
        {
        }

        public List<Student> GetByName(string name)
        {
            return (from student in _list
                   where student.Name == name
                   select student).ToList();
        }
    }
}
